package com.wxyzz.cem.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author xclhove
 */

@Getter
@AllArgsConstructor
public enum UserRole {
    USER(0, "普通用户"),
    CLASS_ADMIN(1, "班级管理员");
    @EnumValue
    private final Integer role;
    @JsonValue
    private final String description;
}
